package week07;

public class TestFee {
    public static void main(String[] args) {
        //先要组装责任链
        Handler h1 = new GeneralManager();
        Handler h2 = new DeptManager();
        Handler h3 = new ProjectManager();
        h3.setSuccessor(h2);
        h2.setSuccessor(h1);

        //开始测试
        String test1 = h3.handleFeeRequest("张三", 300);
        System.out.println("test1 = " + test1);

        String test3 = h3.handleFeeRequest("张三", 700);
        System.out.println("test3 = " + test3);

        System.out.println("---------------------------------------");
    }
}
